﻿@model HomePageProductsModel
@using Nop.Web.Framework.UI;
@using Nop.Web.Models.Catalog;
@if (Model.Products.Count > 0)
{
    <div class="product-grid home-page-product-grid">
        <div class="title">
            @T("HomePage.Products")
        </div>
        <div class="clear">
        </div>
        @if (Model.UseSmallProductBox)
        {
            @(Html.DataList<ProductModel>(Model.Products, 4,
            @<div class="item-box">
                @Html.Partial("_ProductSmallBox2", @item)
            </div>
                ))
        }
        else
        {
        @(Html.DataList<ProductModel>(Model.Products, 2,
            @<div class="item-box">
                @Html.Partial("_ProductBox", @item)
            </div>
                ))
        }
    </div>
}